package model

//令牌租赁-发布订单
type RentSubmitOrderRequest struct {
	Num   int64   `form:"num" json:"num" binding:"required"`
	Days  int64   `form:"days" json:"days" binding:"required"`
	Scale float64 `form:"scale" json:"scale" binding:"required"`
	Info  string  `form:"info" json:"info"`
	Code  int     `form:"code" json:"code" binding:"required"`
	U     string  `form:"u" json:"u" binding:"required"`
}

//令牌租赁-取消订单
type RentCancelOrder struct {
	OrderNo string `form:"orderNo" json:"orderNo"`
}

//令牌租赁-出租令牌
type RentToken struct {
	OrderNo string `form:"orderNo" json:"orderNo"`
	Num     int64  `form:"num" json:"num"`
	Code    int    `form:"code" json:"code" binding:"required"`
	U       string `form:"u" json:"u" binding:"required"`
}

//令牌租赁-检查保证金
type RentCheckDeposit struct {
	Num int64 `form:"num" json:"num" binding:"required"`
}

//超级节点-退出超级节点
type SecedeSuperNode struct {
	Code int    `form:"code" json:"code" binding:"required"`
	U    string `form:"u" json:"u" binding:"required"`
}

//管理后台-内部充值/扣除
type SysCvnParams struct {
	Uid    int64   `form:"uid" json:"uid" binding:"required"`
	Code   int     `form:"code" json:"code" binding:"required"`
	Amount float64 `form:"amount" json:"amount" binding:"required"`
	Action int     `form:"action" json:"action" binding:"required"`
}
